package com.bookmarket.entity;

/**
 * @author Chen Zhaoguang
 * @date 2017/12/26 11:28
 */

/**
 * 订单 图书 关系
 */
public class Order_Book {
    private int id;
    private Order order;//订单外键
    private Book book;//图书外键
    private int amount;//数量

    public Order_Book() {
    }

    public Order_Book(int id, Order order, Book book, int amount) {
        this.id = id;
        this.order = order;
        this.book = book;
        this.amount = amount;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public Book getBook() {
        return book;
    }

    public void setBook(Book book) {
        this.book = book;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }
}
